﻿
angular.module('SLG')
  .controller("selectServerController", function ($scope, $state, $rootScope, $http) {
      

      $scope.servers = [];

      var url = "../../Api.ashx?sys:sno=Config&sys:act=GetServers";

      $http.get(url).success(function (data) {
          if (data.IsSuccess) {
              $scope.servers = data.Data.Items;
          }
      })

      $scope.goMainPage = function (item) {
          //window.location.href = item.Url;
          $state.go("loadingKingdom");
      }
  })